<!DOCTYPE html>
<html style="height: 100%">
   <head>
       <meta charset="utf-8">
   </head>
   <body style="height: 100%; margin: 0">
       <div id="container" style="height: 100%"></div>
       <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
       <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-gl/dist/echarts-gl.min.js"></script>
       <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-stat/dist/ecStat.min.js"></script>
       <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/extension/dataTool.min.js"></script>
       <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/map/js/china.js"></script>
       <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/map/js/world.js"></script>
       <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=w2ix5B3YHo2HBKSQlK7QRNdxnL9yA6NT&__ec_v__=20190126"></script>
       <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/extension/bmap.min.js"></script>
       <script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};
option = null;
option = {
    tooltip: {
        trigger: 'axis',
        axisPointer: {            // 坐标轴指示器，坐标轴触发有效
            type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
        }
    },
    legend: {
        data: ['日常巡视','安全检查','专项监督','检修预试','电网方式分析','电网专项','条例专项','安全性评价','电网隐患','事故分析']
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis: [
        {
            type: 'category',
            data: ['检修公司','集安市供电公司','柳河县供电公司','通化市城郊供电公司','信息通信分公司','检修分公司','辉南县供电公司','梅河口市供电公司','长春市城郊供电分公司','松原市城郊供电公司']
        }
    ],
    yAxis: [
        {
            type: 'value'
        }
    ],
    series: [
        {
            name: '日常巡视',
            type: 'bar',
            data: [602, 489, 486, 464, 324, 319, 283, 282, 199, 183]
        },
        {
            name: '安全检查',
            type: 'bar',
            data: [559, 259, 221, 167, 167, 165, 151, 146, 144, 141]
        },
        {
            name: '专项监督',
            type: 'bar',
            stack: '其他隐患',
            data: [38, 30, 22, 20, 20, 18, 18, 16, 16, 14]
        },
        {
            name: '检修预试',
            type: 'bar',
            stack: '其他隐患',
            data: [62, 26, 18, 11, 7, 5, 4, 4, 4, 4]
        },
        {
            name: '电网方式分析',
            type: 'bar',
            stack: '其他隐患',
            data: [8, 8, 7, 7, 5, 5, 4, 3, 2, 1],
            markLine: {
                lineStyle: {
                    type: 'dashed'
                },
                data: [
                    [{type: 'min'}, {type: 'max'}]
                ]
            }
        },
        {
            name: '电网专项',
            type: 'bar',
            barWidth: 5,
            stack: '其他隐患',
            data: [3, 2, 2, 1, 1, 1, 1, 1, 1, 1]
        },
        {
            name: '条例专项',
            type: 'bar',
            stack: '其他隐患',
            data:  [16, 1]
        },
        {
            name: '安全性评价',
            type: 'bar',
            stack: '其他隐患',
            data: [6, 1, 1, 1, 1, 1, 1, 1, 1]
        },
        {
            name: '电网隐患',
            type: 'bar',
            stack: '其他隐患',
            data: [11, 2, 1]
        },
        {
            name: '事故分析',
            type: 'bar',
            stack: '其他隐患',
            data: [6, 3, 2, 1, 1]
        }
    ]
};
;
if (option && typeof option === "object") {
    myChart.setOption(option, true);
}
       </script>
   </body>
</html>
